<?php

require_once( realpath('..') . '/includes/admin.php' );

auth();
$dora->database();
$dora->lib('pagination', 'message');

$total = $dora->db->get_var('select count(*) from article');
$dora->pagination->init( array('total_row'=>$total) );

$article_list = $dora->db->get_results("select * from article limit ". $dora->pagination->start_row .", 10");

$dora->set('article_list', $article_list);

$dora->view('article_list');

?>